//
//  FilmCollectionViewCell.m
//  豆瓣
//
//  Created by dllo on 15/11/30.
//  Copyright (c) 2015年 dllo. All rights reserved.
//

#import "FilmCollectionViewCell.h"

@implementation FilmCollectionViewCell

- (void)dealloc
{
    [_imageV release];
    [_label release];
    [super dealloc];
}

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        [self createSubviews];
    }
    return self;
}

- (void)createSubviews
{
    self.backgroundColor = [UIColor whiteColor];
    
    self.imageV = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, self.frame.size.width, self.frame.size.height - 30)];
    self.imageV.image = [UIImage imageNamed:@"picholder@2x.png"];
    [self addSubview:self.imageV];
    [_imageV release];
    
    self.label = [[UILabel alloc] initWithFrame:CGRectMake(0, self.frame.size.height - 30, self.frame.size.width, 30)];
    self.label.textAlignment = NSTextAlignmentCenter;
    [self addSubview:self.label];
    [_label release];
}


@end
